package com.ruoyi.system.domain;

import java.util.List;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 用户对象 user
 *
 * @author ruoyi
 * @date 2024-03-01
 */
public class SysUsers extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    private Long userId;

    /**
     * 用户名称
     */
    @Excel(name = "用户名称")
    private String username;

    /**
     * 手机号
     */
    @Excel(name = "手机号")
    private String phon;

    /**
     * 密码
     */
    @Excel(name = "密码")
    private String password;

    /**
     * 头像
     */
    @Excel(name = "头像")
    private String image;

    /**
     * 发布信息
     */
    private List<SysPosts> sysPostsList;

    /**
     * 收藏消息
     *
     * @param userId
     */
    private List<SysCollection> sysCollectionList;

    /**
     * 浏览历史信息
     */
    private List<SysBrowsingHistory> sysBrowsingHistoryList;


    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getUsername() {
        return username;
    }

    public void setPhon(String phon) {
        this.phon = phon;
    }

    public String getPhon() {
        return phon;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getPassword() {
        return password;
    }

    public void setImage(String image) {
        this.image = image;
    }

    public String getImage() {
        return image;
    }

    public List<SysPosts> getSysPostsList() {
        return sysPostsList;
    }

    public void setSysPostsList(List<SysPosts> sysPostsList) {
        this.sysPostsList = sysPostsList;
    }

    public List<SysCollection> getSysCollectionList() {
        return sysCollectionList;
    }

    public void setSysCollectionList(List<SysCollection> sysCollectionList) {
        this.sysCollectionList = sysCollectionList;
    }

    public List<SysBrowsingHistory> getSysBrowsingHistoryList() {
        return sysBrowsingHistoryList;
    }

    public void setSysBrowsingHistoryList(List<SysBrowsingHistory> sysBrowsingHistoryList) {
        this.sysBrowsingHistoryList = sysBrowsingHistoryList;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("userId", getUserId())
                .append("username", getUsername())
                .append("phon", getPhon())
                .append("password", getPassword())
                .append("image", getImage())
                .append("sysPostsList", getSysPostsList())
                .append("sysCollectionList", getSysCollectionList())
                .append("sysBrowsingHistoryList", getSysBrowsingHistoryList())
                .toString();
    }
}
